home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- #$argv[1]: name of dynamical system class
- # $argv[2-] codenames of dynamical systems in this class
- #
-
- set outdir = $KAOSHOME/modellib
- set outfile = $outdir/class_def.c
-
- echo "Collect a set of dynamical sytems to a class ${argv[1]}..."
-
- cat > $outfile <<END
- /*
- This file is automatically written by kwrite_f.
- */
- /* KAOS DYNAMICAL SYSTEM CLASS = ${argv[1]} */
-
- #include "model.h"
-
- END
-
- set argum =
- foreach argum ($argv[2-])
- cat ${argum}_def.c >> $outfile
- end
- echo Done!
-